#!/bin/env python3
# -*- coding: utf-8 -*- (for python2.x)

import sys
import logging
import sdb
from PyQt5.QtWidgets import QApplication, QDesktopWidget
import main_window

def main():
    app = QApplication(sys.argv)
    dsk = QDesktopWidget()
    mw = main_window.MainWindow()
    mw.move((dsk.width() - mw.width()) / 4, (dsk.height() - mw.height()) / 2)
    mw.show()
    app.exec()
    print('END')

if __name__ == '__main__':
    sdb.logger_init(sdb.log_file_default)
    main()
else:
    pass

